import http from '../../utils/http';

const getStudent = (data: any) => {
  return http({
    url: '/getStudent',
    method: 'post',
    data,
  });
};

const getGradeId = () => {
  return http({
    url: '/getGradeId',
    method: 'post',
  });
};

const selClass = (data: any) => {
  return http({
    url: '/selClass',
    method: 'post',
    data,
  });
};

const addStudent = (data: any) => {
  return http({
    url: '/addStudent',
    method: 'post',
    data,
  });
};

const delStudent = (data: any) => {
  return http({
    url: '/delStudent',
    method: 'post',
    data,
  });
};

const editStudent = (data: any) => {
  return http({
    url: '/editStudent',
    method: 'post',
    data,
  });
};
export {
  getStudent,
  selClass,
  getGradeId,
  addStudent,
  delStudent,
  editStudent,
};
